<?php

namespace App\Api\Logic;

use App\Api\Logic\Validate\SystemNoticeValidate;

class SystemNoticeLogic extends BaseLogic
{
    /**
     * 获取消息列表
     * @param array $params
     * @return void
     */
    public function getSystemNoticeList(array $params)
    {
        $validate = $this->getValidate();
        if(!$validate->scene('systemNotice')->check($params)){
            $this->error($validate->getError());
        }
    }

    /**
     * @return SystemNoticeValidate
     */
    private function getValidate():SystemNoticeValidate{
        return  new SystemNoticeValidate();
    }

}
